<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tld/taglib.tld" prefix="p" %>
<%@ taglib prefix='fmt' uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <jsp:include page="/public/inc/head.jsp"/>
</head>
<body>
<div id="header" class="navbar navbar-static-top" role="navigation">
    <jsp:include page="/public/inc/top.jsp"/>
</div>
<div class="container-fluid" style="margin-top:5px;margin-bottom:60px;">
    <div class="row">
        <jsp:include page="/public/inc/menu.jsp"/>
        <div class="col-xs-12 col-sm-10">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <div class="media">
                        <div class="media-body">
                            <span class="glyphicon glyphicon-list"></span>分销产品统计
                        </div>
                    </div>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>时间</th>
                            <th>点击PV</th>
                            <th>点击UV</th>
                            <th>订单人数</th>
                            <th>分成比例</th>
                            <th>产品单价</th>
                            <th>订单收益</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach var="l" items="${list}" varStatus="status">
                            <tr>
                                <td>
                                        ${status.index+1}
                                </td>
                                <td>
                                        ${l.date}
                                </td>
                                <td>
                                        ${l.pvCount}
                                </td>
                                <td>
                                        ${l.uvCount}
                                </td>
                                <td>
                                        ${l.userCount}
                                </td>
                                <td>
                                        ${l.scale}%
                                </td>
                                <td>
                                    ￥${l.price}
                                </td>
                                <td>
                                    ￥${l.priceCount}
                                </td>
                            </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <div class="panel-footer">
                    <p:pagination url="/system/wwdx_merchant_product/statistics_list" total="${listSize}"/>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<jsp:include page="/public/inc/bottom.jsp"/>
</html>